package com.ruoyi.mf178.vo;

public class OrderStatus {
    public static Integer PendingPayment = 1;
    public static Integer Processing = 2;
    public static Integer Succeed = 3;
    public static Integer PartialFailed = 4;
    public static Integer Failed = 5;

    public static String GetOrderStatusDesc(Integer orderStatus) {
        if (orderStatus == null) {
            return "";
        }
        if (orderStatus == OrderStatus.PendingPayment) {
            return "待支付";
        }
        if (orderStatus == OrderStatus.Processing) {
            return "处理中";
        }
        if (orderStatus == OrderStatus.Succeed) {
            return "交易成功";
        }
        if (orderStatus == OrderStatus.PartialFailed) {
            return "部分交易成功";
        }
        if (orderStatus == OrderStatus.Failed) {
            return "交易失败";
        }
        return "未知状态";
    }
}
